package com.muyu.danmo.service.impl;


import com.muyu.danmo.domain.DanmoInformationCalligrapherregions;
import com.muyu.danmo.mapper.DanmoInformationCalligrapherregionsMapper;
import com.muyu.danmo.service.IDanmoInformationCalligrapherregionsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 书法家地区关联Service业务层处理
 * 
 * @author yangle
 * @date 2024-11-13
 */
@Service
public class DanmoInformationCalligrapherregionsServiceImpl implements IDanmoInformationCalligrapherregionsService
{
    @Autowired
    private DanmoInformationCalligrapherregionsMapper danmoInformationCalligrapherregionsMapper;

    /**
     * 查询书法家地区关联
     * 
     * @param calligrapherRegionId 书法家地区关联主键
     * @return 书法家地区关联
     */
    @Override
    public DanmoInformationCalligrapherregions selectDanmoInformationCalligrapherregionsByCalligrapherRegionId(Long calligrapherRegionId)
    {
        return danmoInformationCalligrapherregionsMapper.selectDanmoInformationCalligrapherregionsByCalligrapherRegionId(calligrapherRegionId);
    }

    /**
     * 查询书法家地区关联列表
     * 
     * @param danmoInformationCalligrapherregions 书法家地区关联
     * @return 书法家地区关联
     */
    @Override
    public List<DanmoInformationCalligrapherregions> selectDanmoInformationCalligrapherregionsList(DanmoInformationCalligrapherregions danmoInformationCalligrapherregions)
    {
        return danmoInformationCalligrapherregionsMapper.selectDanmoInformationCalligrapherregionsList(danmoInformationCalligrapherregions);
    }

    /**
     * 新增书法家地区关联
     * 
     * @param danmoInformationCalligrapherregions 书法家地区关联
     * @return 结果
     */
    @Override
    public int insertDanmoInformationCalligrapherregions(DanmoInformationCalligrapherregions danmoInformationCalligrapherregions)
    {
        return danmoInformationCalligrapherregionsMapper.insertDanmoInformationCalligrapherregions(danmoInformationCalligrapherregions);
    }

    /**
     * 修改书法家地区关联
     * 
     * @param danmoInformationCalligrapherregions 书法家地区关联
     * @return 结果
     */
    @Override
    public int updateDanmoInformationCalligrapherregions(DanmoInformationCalligrapherregions danmoInformationCalligrapherregions)
    {
        return danmoInformationCalligrapherregionsMapper.updateDanmoInformationCalligrapherregions(danmoInformationCalligrapherregions);
    }

    /**
     * 批量删除书法家地区关联
     * 
     * @param calligrapherRegionIds 需要删除的书法家地区关联主键
     * @return 结果
     */
    @Override
    public int deleteDanmoInformationCalligrapherregionsByCalligrapherRegionIds(Long[] calligrapherRegionIds)
    {
        return danmoInformationCalligrapherregionsMapper.deleteDanmoInformationCalligrapherregionsByCalligrapherRegionIds(calligrapherRegionIds);
    }

    /**
     * 删除书法家地区关联信息
     * 
     * @param calligrapherRegionId 书法家地区关联主键
     * @return 结果
     */
    @Override
    public int deleteDanmoInformationCalligrapherregionsByCalligrapherRegionId(Long calligrapherRegionId)
    {
        return danmoInformationCalligrapherregionsMapper.deleteDanmoInformationCalligrapherregionsByCalligrapherRegionId(calligrapherRegionId);
    }
}
